﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DLL;

namespace BLL
{
    public class SettingService
    {
        private SettingRepo m_Repo;

        public SettingService()
        {
            m_Repo = new SettingRepo();
        }

        public Setting Get()
        {
            return m_Repo.Get();
        }

        public void Update(Setting setting)
        {
            m_Repo.Update(setting);
        }

        public bool ChangeProtectPass(string newPass, out string hashPass)
        {
            return m_Repo.ChangeProtectPass(newPass, out hashPass);
        }

        public bool Reset()
        {
            return m_Repo.Reset();
        }

        public void ResetProductAmount()
        {
            m_Repo.ResetProductAmount();
        }
    }
}
